
server:
	make -C ../ex5/ server 
	g++ -I../ex5/server -I../ex5/protocol -c ./server_test.cpp -o ./server_test.o
	g++ -pthread server_test.o -o server_test
		
client:
	make -C ../ex5/ client
	g++ -I../ex5/client -I../ex5/protocol -c ./client_test.cpp -o ./client.o
	g++ client.o -o client_test

sch:
	g++ ./school/tester1.cpp -o tester1
	g++ ./school/tester2.cpp -o tester2
	g++ ./school/tester3.cpp -o tester3
	g++ ./school/tester4.cpp -o tester4
	g++ ./school/tester.cpp -o tester
	make -C ../ex5/
	cp ../ex5/twitClient ../ex5/twitServer ./
	
	
PHONY:
clean:
	make -C ../ex5/ clean
	rm -rf ./*.o client_test server_test tester* twitServer twitClient opc*  qopc* twitServer.log
	
	
